package ${package.VO};

import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
<#-- 初始化标志变量 -->
<#assign needLocalDateTime = false>
<#assign needLocalTime = false>
<#assign needLocalDate = false>
<#assign needBigDecimal = false>

<#-- 检查是否存在需要导入的类型 -->
<#list table.fields as field>
    <#if field.propertyType == "LocalDateTime" >
        <#assign needLocalDateTime = true>
    </#if>
    <#if field.propertyType == "LocalTime" >
        <#assign needLocalTime = true>
    </#if>
    <#if field.propertyType == "LocalDate">
        <#assign needLocalDate = true>
    </#if>
    <#if field.propertyType == "BigDecimal">
        <#assign needBigDecimal = true>
    </#if>
</#list>
<#list table.commonFields as field>
    <#if field.propertyType == "LocalDateTime" >
        <#assign needLocalDateTime = true>
    </#if>
    <#if field.propertyType == "LocalTime" >
        <#assign needLocalTime = true>
    </#if>
    <#if field.propertyType == "LocalDate">
        <#assign needLocalDate = true>
    </#if>
    <#if field.propertyType == "BigDecimal">
        <#assign needBigDecimal = true>
    </#if>
</#list>
<#if needLocalDateTime>
import java.time.LocalDateTime;
</#if>
<#if needLocalTime>
import java.time.LocalTime;
</#if>
<#if needLocalDate>
import java.time.LocalDate;
</#if>
<#if needBigDecimal>
import java.math.BigDecimal;
</#if>
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * ${table.comment!} VO
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */

@ApiModel(value = "${entity?replace("Entity", "", "rf")}VO", description = "")
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class ${entity?replace("Entity", "", "rf")}VO {

    @ApiModelProperty("主键ID")
    Long id;

<#list table.fields as field>
    <#list field.annotationAttributesList as an>
    ${an.displayName}
    </#list>
    ${field.propertyType} ${field.propertyName};

</#list>

}